import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '分类标题',
    align: 'left',
    dataIndex: 'title'
  },
  {
    title: '分类编码',
    align: 'center',
    dataIndex: 'code'
  },
  {
    title: '分类图标',
    align: 'center',
    dataIndex: 'fileUrl',
    customRender: render.renderImage,
  },
  {
    title: '排序',
    align: 'center',
    sorter: true,
    dataIndex: 'sort'
  },
  {
    title: '分类描述',
    align: 'center',
    dataIndex: 'description'
  },
];

// 高级查询数据
export const superQuerySchema = {
  title: {title: '分类标题',order: 0,view: 'text', type: 'string',},
  code: {title: '分类编码',order: 1,view: 'text', type: 'string',},
  fileUrl: {title: '分类图标',order: 2,view: 'image', type: 'string',},
  sort: {title: '排序',order: 3,view: 'number', type: 'number',},
  description: {title: '分类描述',order: 4,view: 'textarea', type: 'string',},
};
